extends Panel

var data: Dictionary = {}:
	set(v):
		data = v
		set_view()


func set_view() -> void:
	$MarginContainer/TankDesc/NameLabel.text = str(data.name)
	$MarginContainer/TankDesc/PropRowDamage/Value.text = str(data.damage)
	$MarginContainer/TankDesc/PropRowSpeed/Value.text = str(data.speed)
	$MarginContainer/TankDesc/PropRowShellSpeed/Value.text = str(data.shell_speed)
	$MarginContainer/TankDesc/PropRowFireRate/Value.text = str(data.fire_rate)
	$MarginContainer/TankDesc/PropRowHealth/Value.text = str(data.health)
